<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no"
    />
    <title>点击修改元素内容</title>
    <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="./css/common.css" type="text/css" />
    <link rel="stylesheet" href="./css/demo.css" type="text/css" />
  </head>
  <body>
    <div class="box">
      <ul>
        <li>
          <div class="name">傲慢与偏见</div>
          <div class="price">￥21.9</div>
          <div class="opt">
            <div class="sub" id="1">-</div>
            <div class="num">2</div>
            <div class="add">+</div>
          </div>
          <div class="sum-price">￥42.8</div>
        </li>
        <li>
          <div class="name">钢铁是怎么炼成的</div>
          <div class="price">￥32.9</div>
          <div class="opt">
            <div class="sub" id="2">-</div>
            <div class="num">1</div>
            <div class="add">+</div>
          </div>
          <div class="sum-price">￥32.9</div>
        </li>
        <li>
          <div class="btn-box">
            <button class="buy">结算</button>
          </div>
        </li>
      </ul>
      <div class="info"></div>
    </div>
    <script src="./js/demo.js"></script>
  </body>
</html>
